package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.PayCustomerOrderItemDiscountRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.pojo.vo.pay.PayCustomerOrderItemDiscountRuleSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-09-13
 */
@Mapper
interface PayCustomerOrderItemDiscountRuleMapper : BaseMapper<PayCustomerOrderItemDiscountRule>{

	/**
	 * 获取订单优惠项目设置分页
	 */
	fun getRulePage(@Param("page")page: Page<PayCustomerOrderItemDiscountRule>, @Param("vo")vo: PayCustomerOrderItemDiscountRuleSelectVo): Page<PayCustomerOrderItemDiscountRule>

	/**
	 * 获取订单优惠项目列表
	 */
	fun getRuleList(@Param("vo")vo: PayCustomerOrderItemDiscountRuleSelectVo): List<PayCustomerOrderItemDiscountRule>

}
